package com.kaifamiao.N0729;

public class Sub extends Sup{

    int a = 30;
    static int b = 40;

    static{
        b = 41;
        System.out.println("sub static {}");
    }

    {
        a = 31;
        System.out.println("sub {}");
    }

    public Sub(){
        System.out.println("sub()");
        print();
    }

    @Override
    public void print(){
        System.out.println("sub.print()");
        System.out.println("a = "+a);
        System.out.println("b = "+b);
    }
}
